const { buildModule } = require("@nomicfoundation/hardhat-ignition/modules");
const { DNPWithFakesModule } = require("./DeltaNeutralPortfolio");
const { PoolModule } = require("./Pool");

const RegisterPoolModule = buildModule("RegisterPool", m => {
  const { DNP } = m.useModule(DNPWithFakesModule);
  const { pool } = m.useModule(PoolModule);

  m.call(DNP, "registerPool", [pool]);

  return {};
});

module.exports = { RegisterPoolModule };
